Integrand size = 30, antiderivative size = 175 \[ \int \frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{(a g+b g x)^4} \, dx=\frac {B}{9 b g^4 (a+b x)^3}-\frac {B d}{6 b (b c-a d) g^4 (a+b x)^2}+\frac {B d^2}{3 b (b c-a d)^2 g^4 (a+b x)}+\frac {B d^3 \log (a+b x)}{3 b (b c-a d)^3 g^4}-\frac {B d^3 \log (c+d x)}{3 b (b c-a d)^3 g^4}-\frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{3 b g^4 (a+b x)^3} \]
1/9*B/b/g^4/(b*x+a)^3-1/6*B*d/b/(-a*d+b*c)/g^4/(b*x+a)^2+1/3*B*d^2/b/(-a*d +b*c)^2/g^4/(b*x+a)+1/3*B*d^3*ln(b*x+a)/b/(-a*d+b*c)^3/g^4-1/3*B*d^3*ln(d* x+c)/b/(-a*d+b*c)^3/g^4+1/3*(-A-B*ln(e*(d*x+c)/(b*x+a)))/b/g^4/(b*x+a)^3
Time = 0.10 (sec) , antiderivative size = 141, normalized size of antiderivative = 0.81 \[ \int \frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{(a g+b g x)^4} \, dx=\frac {\frac {B \left ((b c-a d) \left (11 a^2 d^2+a b d (-7 c+15 d x)+b^2 \left (2 c^2-3 c d x+6 d^2 x^2\right )\right )+6 d^3 (a+b x)^3 \log (a+b x)-6 d^3 (a+b x)^3 \log (c+d x)\right )}{(b c-a d)^3}-6 \left (A+B \log \left (\frac {e (c+d x)}{a+b x}\right )\right )}{18 b g^4 (a+b x)^3} \]
((B*((b*c - a*d)*(11*a^2*d^2 + a*b*d*(-7*c + 15*d*x) + b^2*(2*c^2 - 3*c*d* x + 6*d^2*x^2)) + 6*d^3*(a + b*x)^3*Log[a + b*x] - 6*d^3*(a + b*x)^3*Log[c + d*x]))/(b*c - a*d)^3 - 6*(A + B*Log[(e*(c + d*x))/(a + b*x)]))/(18*b*g^ 4*(a + b*x)^3)
Time = 0.35 (sec) , antiderivative size = 163, normalized size of antiderivative = 0.93, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {2948, 27, 54, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {B \log \left (\frac {e (c+d x)}{a+b x}\right )+A}{(a g+b g x)^4} \, dx\) |
\(\Big \downarrow \) 2948 |
\(\displaystyle -\frac {B (b c-a d) \int \frac {1}{g^3 (a+b x)^4 (c+d x)}dx}{3 b g}-\frac {B \log \left (\frac {e (c+d x)}{a+b x}\right )+A}{3 b g^4 (a+b x)^3}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {B (b c-a d) \int \frac {1}{(a+b x)^4 (c+d x)}dx}{3 b g^4}-\frac {B \log \left (\frac {e (c+d x)}{a+b x}\right )+A}{3 b g^4 (a+b x)^3}\) |
\(\Big \downarrow \) 54 |
\(\displaystyle -\frac {B (b c-a d) \int \left (\frac {d^4}{(b c-a d)^4 (c+d x)}-\frac {b d^3}{(b c-a d)^4 (a+b x)}+\frac {b d^2}{(b c-a d)^3 (a+b x)^2}-\frac {b d}{(b c-a d)^2 (a+b x)^3}+\frac {b}{(b c-a d) (a+b x)^4}\right )dx}{3 b g^4}-\frac {B \log \left (\frac {e (c+d x)}{a+b x}\right )+A}{3 b g^4 (a+b x)^3}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {B \log \left (\frac {e (c+d x)}{a+b x}\right )+A}{3 b g^4 (a+b x)^3}-\frac {B (b c-a d) \left (-\frac {d^3 \log (a+b x)}{(b c-a d)^4}+\frac {d^3 \log (c+d x)}{(b c-a d)^4}-\frac {d^2}{(a+b x) (b c-a d)^3}+\frac {d}{2 (a+b x)^2 (b c-a d)^2}-\frac {1}{3 (a+b x)^3 (b c-a d)}\right )}{3 b g^4}\) |
-1/3*(B*(b*c - a*d)*(-1/3*1/((b*c - a*d)*(a + b*x)^3) + d/(2*(b*c - a*d)^2 *(a + b*x)^2) - d^2/((b*c - a*d)^3*(a + b*x)) - (d^3*Log[a + b*x])/(b*c - a*d)^4 + (d^3*Log[c + d*x])/(b*c - a*d)^4))/(b*g^4) - (A + B*Log[(e*(c + d *x))/(a + b*x)])/(3*b*g^4*(a + b*x)^3)
3.2.80.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[E xpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && ILtQ[m, 0] && IntegerQ[n] && !(IGtQ[n, 0] && LtQ[m + n + 2, 0])
Int[((A_.) + Log[(e_.)*((a_.) + (b_.)*(x_))^(n_.)*((c_.) + (d_.)*(x_))^(mn_ )]*(B_.))*((f_.) + (g_.)*(x_))^(m_.), x_Symbol] :> Simp[(f + g*x)^(m + 1)*( (A + B*Log[e*((a + b*x)^n/(c + d*x)^n)])/(g*(m + 1))), x] - Simp[B*n*((b*c - a*d)/(g*(m + 1))) Int[(f + g*x)^(m + 1)/((a + b*x)*(c + d*x)), x], x] / ; FreeQ[{a, b, c, d, e, f, g, A, B, m, n}, x] && EqQ[n + mn, 0] && NeQ[b*c - a*d, 0] && NeQ[m, -1] && !(EqQ[m, -2] && IntegerQ[n])
Time = 1.27 (sec) , antiderivative size = 330, normalized size of antiderivative = 1.89
method | result | size |
parts | \(-\frac {A}{3 g^{4} \left (b x +a \right )^{3} b}+\frac {B \,b^{2} \left (\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{3} \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )}{3}-\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{3}}{9}-\frac {2 d e \left (\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{2} \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )}{2}-\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{2}}{4}\right )}{b}+\frac {d^{2} e^{2} \left (\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right ) \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )+\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}-\frac {d e}{b}\right )}{b^{2}}\right )}{g^{4} e^{3} \left (a d -c b \right )^{3}}\) | \(330\) |
risch | \(-\frac {B \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right )}{3 b \,g^{4} \left (b x +a \right )^{3}}-\frac {6 B \ln \left (b x +a \right ) b^{3} d^{3} x^{3}-6 B \ln \left (-d x -c \right ) b^{3} d^{3} x^{3}+18 B \ln \left (b x +a \right ) a \,b^{2} d^{3} x^{2}-18 B \ln \left (-d x -c \right ) a \,b^{2} d^{3} x^{2}+18 B \ln \left (b x +a \right ) a^{2} b \,d^{3} x -18 B \ln \left (-d x -c \right ) a^{2} b \,d^{3} x -6 B a \,b^{2} d^{3} x^{2}+6 B \,b^{3} c \,d^{2} x^{2}+6 B \ln \left (b x +a \right ) a^{3} d^{3}-6 B \ln \left (-d x -c \right ) a^{3} d^{3}-15 B \,a^{2} b \,d^{3} x +18 B a \,b^{2} c \,d^{2} x -3 B \,b^{3} c^{2} d x +6 A \,a^{3} d^{3}-18 A \,a^{2} b c \,d^{2}+18 A a \,b^{2} c^{2} d -6 A \,b^{3} c^{3}-11 B \,a^{3} d^{3}+18 B \,a^{2} b c \,d^{2}-9 B a \,b^{2} c^{2} d +2 B \,c^{3} b^{3}}{18 \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) g^{4} \left (b x +a \right )^{3} b}\) | \(377\) |
parallelrisch | \(-\frac {-18 A \,a^{2} b^{5} c \,d^{3}+18 A a \,b^{6} c^{2} d^{2}+18 B x a \,b^{6} c \,d^{3}-15 B x \,a^{2} b^{5} d^{4}-3 B x \,b^{7} c^{2} d^{2}-6 B \,x^{2} a \,b^{6} d^{4}+6 B \,x^{2} b^{7} c \,d^{3}+6 A \,a^{3} b^{4} d^{4}-6 A \,b^{7} c^{3} d -11 B \,a^{3} b^{4} d^{4}+2 B \,b^{7} c^{3} d -18 B \,x^{2} \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right ) a \,b^{6} d^{4}-18 B x \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right ) a^{2} b^{5} d^{4}-18 B \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right ) a^{2} b^{5} c \,d^{3}+18 B \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right ) a \,b^{6} c^{2} d^{2}+18 B \,a^{2} b^{5} c \,d^{3}-9 B a \,b^{6} c^{2} d^{2}-6 B \,x^{3} \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right ) b^{7} d^{4}-6 B \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right ) b^{7} c^{3} d}{18 g^{4} \left (b x +a \right )^{3} \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) b^{5} d}\) | \(382\) |
norman | \(\frac {\frac {B \,a^{2} d^{3} x \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right )}{\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) g}+\frac {B a b \,d^{3} x^{2} \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right )}{\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) g}-\frac {6 A \,a^{2} b \,d^{2}-12 A a \,b^{2} c d +6 A \,c^{2} b^{3}-9 B \,a^{2} b \,d^{2}+7 B a \,b^{2} c d -2 B \,b^{3} c^{2}}{18 g \,b^{2} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}+\frac {\left (3 B a b \,d^{2}-B \,b^{2} c d \right ) x}{6 g \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) b}+\frac {B c \left (3 a^{2} d^{2}-3 a b c d +b^{2} c^{2}\right ) \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right )}{3 g \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right )}-\frac {B \,b^{2} d^{2} x^{3}}{9 a g \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}+\frac {d^{3} B \,b^{2} x^{3} \ln \left (\frac {e \left (d x +c \right )}{b x +a}\right )}{3 \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) g}}{g^{3} \left (b x +a \right )^{3}}\) | \(472\) |
derivativedivides | \(\frac {e \left (a d -c b \right ) \left (\frac {b^{4} A \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{3}}{3 \left (a d -c b \right )^{4} e^{4} g^{4}}-\frac {b^{3} A d \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{2}}{\left (a d -c b \right )^{4} e^{3} g^{4}}+\frac {b^{2} A \,d^{2} \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )}{\left (a d -c b \right )^{4} e^{2} g^{4}}+\frac {b^{4} B \left (\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{3} \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )}{3}-\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{3}}{9}\right )}{\left (a d -c b \right )^{4} e^{4} g^{4}}-\frac {2 b^{3} B d \left (\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{2} \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )}{2}-\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{2}}{4}\right )}{\left (a d -c b \right )^{4} e^{3} g^{4}}+\frac {b^{2} B \,d^{2} \left (\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right ) \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )+\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}-\frac {d e}{b}\right )}{\left (a d -c b \right )^{4} e^{2} g^{4}}\right )}{b^{2}}\) | \(514\) |
default | \(\frac {e \left (a d -c b \right ) \left (\frac {b^{4} A \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{3}}{3 \left (a d -c b \right )^{4} e^{4} g^{4}}-\frac {b^{3} A d \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{2}}{\left (a d -c b \right )^{4} e^{3} g^{4}}+\frac {b^{2} A \,d^{2} \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )}{\left (a d -c b \right )^{4} e^{2} g^{4}}+\frac {b^{4} B \left (\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{3} \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )}{3}-\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{3}}{9}\right )}{\left (a d -c b \right )^{4} e^{4} g^{4}}-\frac {2 b^{3} B d \left (\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{2} \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )}{2}-\frac {\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )^{2}}{4}\right )}{\left (a d -c b \right )^{4} e^{3} g^{4}}+\frac {b^{2} B \,d^{2} \left (\left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right ) \ln \left (\frac {d e}{b}-\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}\right )+\frac {e \left (a d -c b \right )}{b \left (b x +a \right )}-\frac {d e}{b}\right )}{\left (a d -c b \right )^{4} e^{2} g^{4}}\right )}{b^{2}}\) | \(514\) |
-1/3*A/g^4/(b*x+a)^3/b+B/g^4*b^2/e^3/(a*d-b*c)^3*(1/3*(d*e/b-e*(a*d-b*c)/b /(b*x+a))^3*ln(d*e/b-e*(a*d-b*c)/b/(b*x+a))-1/9*(d*e/b-e*(a*d-b*c)/b/(b*x+ a))^3-2*d*e/b*(1/2*(d*e/b-e*(a*d-b*c)/b/(b*x+a))^2*ln(d*e/b-e*(a*d-b*c)/b/ (b*x+a))-1/4*(d*e/b-e*(a*d-b*c)/b/(b*x+a))^2)+d^2*e^2/b^2*((d*e/b-e*(a*d-b *c)/b/(b*x+a))*ln(d*e/b-e*(a*d-b*c)/b/(b*x+a))+e*(a*d-b*c)/b/(b*x+a)-d*e/b ))
Leaf count of result is larger than twice the leaf count of optimal. 412 vs. \(2 (163) = 326\).
Time = 0.28 (sec) , antiderivative size = 412, normalized size of antiderivative = 2.35 \[ \int \frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{(a g+b g x)^4} \, dx=-\frac {2 \, {\left (3 \, A - B\right )} b^{3} c^{3} - 9 \, {\left (2 \, A - B\right )} a b^{2} c^{2} d + 18 \, {\left (A - B\right )} a^{2} b c d^{2} - {\left (6 \, A - 11 \, B\right )} a^{3} d^{3} - 6 \, {\left (B b^{3} c d^{2} - B a b^{2} d^{3}\right )} x^{2} + 3 \, {\left (B b^{3} c^{2} d - 6 \, B a b^{2} c d^{2} + 5 \, B a^{2} b d^{3}\right )} x + 6 \, {\left (B b^{3} d^{3} x^{3} + 3 \, B a b^{2} d^{3} x^{2} + 3 \, B a^{2} b d^{3} x + B b^{3} c^{3} - 3 \, B a b^{2} c^{2} d + 3 \, B a^{2} b c d^{2}\right )} \log \left (\frac {d e x + c e}{b x + a}\right )}{18 \, {\left ({\left (b^{7} c^{3} - 3 \, a b^{6} c^{2} d + 3 \, a^{2} b^{5} c d^{2} - a^{3} b^{4} d^{3}\right )} g^{4} x^{3} + 3 \, {\left (a b^{6} c^{3} - 3 \, a^{2} b^{5} c^{2} d + 3 \, a^{3} b^{4} c d^{2} - a^{4} b^{3} d^{3}\right )} g^{4} x^{2} + 3 \, {\left (a^{2} b^{5} c^{3} - 3 \, a^{3} b^{4} c^{2} d + 3 \, a^{4} b^{3} c d^{2} - a^{5} b^{2} d^{3}\right )} g^{4} x + {\left (a^{3} b^{4} c^{3} - 3 \, a^{4} b^{3} c^{2} d + 3 \, a^{5} b^{2} c d^{2} - a^{6} b d^{3}\right )} g^{4}\right )}} \]
-1/18*(2*(3*A - B)*b^3*c^3 - 9*(2*A - B)*a*b^2*c^2*d + 18*(A - B)*a^2*b*c* d^2 - (6*A - 11*B)*a^3*d^3 - 6*(B*b^3*c*d^2 - B*a*b^2*d^3)*x^2 + 3*(B*b^3* c^2*d - 6*B*a*b^2*c*d^2 + 5*B*a^2*b*d^3)*x + 6*(B*b^3*d^3*x^3 + 3*B*a*b^2* d^3*x^2 + 3*B*a^2*b*d^3*x + B*b^3*c^3 - 3*B*a*b^2*c^2*d + 3*B*a^2*b*c*d^2) *log((d*e*x + c*e)/(b*x + a)))/((b^7*c^3 - 3*a*b^6*c^2*d + 3*a^2*b^5*c*d^2 - a^3*b^4*d^3)*g^4*x^3 + 3*(a*b^6*c^3 - 3*a^2*b^5*c^2*d + 3*a^3*b^4*c*d^2 - a^4*b^3*d^3)*g^4*x^2 + 3*(a^2*b^5*c^3 - 3*a^3*b^4*c^2*d + 3*a^4*b^3*c*d ^2 - a^5*b^2*d^3)*g^4*x + (a^3*b^4*c^3 - 3*a^4*b^3*c^2*d + 3*a^5*b^2*c*d^2 - a^6*b*d^3)*g^4)
Leaf count of result is larger than twice the leaf count of optimal. 656 vs. \(2 (151) = 302\).
Time = 1.77 (sec) , antiderivative size = 656, normalized size of antiderivative = 3.75 \[ \int \frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{(a g+b g x)^4} \, dx=- \frac {B \log {\left (\frac {e \left (c + d x\right )}{a + b x} \right )}}{3 a^{3} b g^{4} + 9 a^{2} b^{2} g^{4} x + 9 a b^{3} g^{4} x^{2} + 3 b^{4} g^{4} x^{3}} + \frac {B d^{3} \log {\left (x + \frac {- \frac {B a^{4} d^{7}}{\left (a d - b c\right )^{3}} + \frac {4 B a^{3} b c d^{6}}{\left (a d - b c\right )^{3}} - \frac {6 B a^{2} b^{2} c^{2} d^{5}}{\left (a d - b c\right )^{3}} + \frac {4 B a b^{3} c^{3} d^{4}}{\left (a d - b c\right )^{3}} + B a d^{4} - \frac {B b^{4} c^{4} d^{3}}{\left (a d - b c\right )^{3}} + B b c d^{3}}{2 B b d^{4}} \right )}}{3 b g^{4} \left (a d - b c\right )^{3}} - \frac {B d^{3} \log {\left (x + \frac {\frac {B a^{4} d^{7}}{\left (a d - b c\right )^{3}} - \frac {4 B a^{3} b c d^{6}}{\left (a d - b c\right )^{3}} + \frac {6 B a^{2} b^{2} c^{2} d^{5}}{\left (a d - b c\right )^{3}} - \frac {4 B a b^{3} c^{3} d^{4}}{\left (a d - b c\right )^{3}} + B a d^{4} + \frac {B b^{4} c^{4} d^{3}}{\left (a d - b c\right )^{3}} + B b c d^{3}}{2 B b d^{4}} \right )}}{3 b g^{4} \left (a d - b c\right )^{3}} + \frac {- 6 A a^{2} d^{2} + 12 A a b c d - 6 A b^{2} c^{2} + 11 B a^{2} d^{2} - 7 B a b c d + 2 B b^{2} c^{2} + 6 B b^{2} d^{2} x^{2} + x \left (15 B a b d^{2} - 3 B b^{2} c d\right )}{18 a^{5} b d^{2} g^{4} - 36 a^{4} b^{2} c d g^{4} + 18 a^{3} b^{3} c^{2} g^{4} + x^{3} \cdot \left (18 a^{2} b^{4} d^{2} g^{4} - 36 a b^{5} c d g^{4} + 18 b^{6} c^{2} g^{4}\right ) + x^{2} \cdot \left (54 a^{3} b^{3} d^{2} g^{4} - 108 a^{2} b^{4} c d g^{4} + 54 a b^{5} c^{2} g^{4}\right ) + x \left (54 a^{4} b^{2} d^{2} g^{4} - 108 a^{3} b^{3} c d g^{4} + 54 a^{2} b^{4} c^{2} g^{4}\right )} \]
-B*log(e*(c + d*x)/(a + b*x))/(3*a**3*b*g**4 + 9*a**2*b**2*g**4*x + 9*a*b* *3*g**4*x**2 + 3*b**4*g**4*x**3) + B*d**3*log(x + (-B*a**4*d**7/(a*d - b*c )**3 + 4*B*a**3*b*c*d**6/(a*d - b*c)**3 - 6*B*a**2*b**2*c**2*d**5/(a*d - b *c)**3 + 4*B*a*b**3*c**3*d**4/(a*d - b*c)**3 + B*a*d**4 - B*b**4*c**4*d**3 /(a*d - b*c)**3 + B*b*c*d**3)/(2*B*b*d**4))/(3*b*g**4*(a*d - b*c)**3) - B* d**3*log(x + (B*a**4*d**7/(a*d - b*c)**3 - 4*B*a**3*b*c*d**6/(a*d - b*c)** 3 + 6*B*a**2*b**2*c**2*d**5/(a*d - b*c)**3 - 4*B*a*b**3*c**3*d**4/(a*d - b *c)**3 + B*a*d**4 + B*b**4*c**4*d**3/(a*d - b*c)**3 + B*b*c*d**3)/(2*B*b*d **4))/(3*b*g**4*(a*d - b*c)**3) + (-6*A*a**2*d**2 + 12*A*a*b*c*d - 6*A*b** 2*c**2 + 11*B*a**2*d**2 - 7*B*a*b*c*d + 2*B*b**2*c**2 + 6*B*b**2*d**2*x**2 + x*(15*B*a*b*d**2 - 3*B*b**2*c*d))/(18*a**5*b*d**2*g**4 - 36*a**4*b**2*c *d*g**4 + 18*a**3*b**3*c**2*g**4 + x**3*(18*a**2*b**4*d**2*g**4 - 36*a*b** 5*c*d*g**4 + 18*b**6*c**2*g**4) + x**2*(54*a**3*b**3*d**2*g**4 - 108*a**2* b**4*c*d*g**4 + 54*a*b**5*c**2*g**4) + x*(54*a**4*b**2*d**2*g**4 - 108*a** 3*b**3*c*d*g**4 + 54*a**2*b**4*c**2*g**4))
Leaf count of result is larger than twice the leaf count of optimal. 428 vs. \(2 (163) = 326\).
Time = 0.21 (sec) , antiderivative size = 428, normalized size of antiderivative = 2.45 \[ \int \frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{(a g+b g x)^4} \, dx=\frac {1}{18} \, B {\left (\frac {6 \, b^{2} d^{2} x^{2} + 2 \, b^{2} c^{2} - 7 \, a b c d + 11 \, a^{2} d^{2} - 3 \, {\left (b^{2} c d - 5 \, a b d^{2}\right )} x}{{\left (b^{6} c^{2} - 2 \, a b^{5} c d + a^{2} b^{4} d^{2}\right )} g^{4} x^{3} + 3 \, {\left (a b^{5} c^{2} - 2 \, a^{2} b^{4} c d + a^{3} b^{3} d^{2}\right )} g^{4} x^{2} + 3 \, {\left (a^{2} b^{4} c^{2} - 2 \, a^{3} b^{3} c d + a^{4} b^{2} d^{2}\right )} g^{4} x + {\left (a^{3} b^{3} c^{2} - 2 \, a^{4} b^{2} c d + a^{5} b d^{2}\right )} g^{4}} - \frac {6 \, \log \left (\frac {d e x}{b x + a} + \frac {c e}{b x + a}\right )}{b^{4} g^{4} x^{3} + 3 \, a b^{3} g^{4} x^{2} + 3 \, a^{2} b^{2} g^{4} x + a^{3} b g^{4}} + \frac {6 \, d^{3} \log \left (b x + a\right )}{{\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} g^{4}} - \frac {6 \, d^{3} \log \left (d x + c\right )}{{\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} g^{4}}\right )} - \frac {A}{3 \, {\left (b^{4} g^{4} x^{3} + 3 \, a b^{3} g^{4} x^{2} + 3 \, a^{2} b^{2} g^{4} x + a^{3} b g^{4}\right )}} \]
1/18*B*((6*b^2*d^2*x^2 + 2*b^2*c^2 - 7*a*b*c*d + 11*a^2*d^2 - 3*(b^2*c*d - 5*a*b*d^2)*x)/((b^6*c^2 - 2*a*b^5*c*d + a^2*b^4*d^2)*g^4*x^3 + 3*(a*b^5*c ^2 - 2*a^2*b^4*c*d + a^3*b^3*d^2)*g^4*x^2 + 3*(a^2*b^4*c^2 - 2*a^3*b^3*c*d + a^4*b^2*d^2)*g^4*x + (a^3*b^3*c^2 - 2*a^4*b^2*c*d + a^5*b*d^2)*g^4) - 6 *log(d*e*x/(b*x + a) + c*e/(b*x + a))/(b^4*g^4*x^3 + 3*a*b^3*g^4*x^2 + 3*a ^2*b^2*g^4*x + a^3*b*g^4) + 6*d^3*log(b*x + a)/((b^4*c^3 - 3*a*b^3*c^2*d + 3*a^2*b^2*c*d^2 - a^3*b*d^3)*g^4) - 6*d^3*log(d*x + c)/((b^4*c^3 - 3*a*b^ 3*c^2*d + 3*a^2*b^2*c*d^2 - a^3*b*d^3)*g^4)) - 1/3*A/(b^4*g^4*x^3 + 3*a*b^ 3*g^4*x^2 + 3*a^2*b^2*g^4*x + a^3*b*g^4)
Leaf count of result is larger than twice the leaf count of optimal. 447 vs. \(2 (163) = 326\).
Time = 0.44 (sec) , antiderivative size = 447, normalized size of antiderivative = 2.55 \[ \int \frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{(a g+b g x)^4} \, dx=-\frac {1}{18} \, {\left (6 \, {\left (\frac {{\left (d e x + c e\right )}^{3} B b^{2}}{{\left (b^{2} c^{2} e^{2} g^{4} - 2 \, a b c d e^{2} g^{4} + a^{2} d^{2} e^{2} g^{4}\right )} {\left (b x + a\right )}^{3}} - \frac {3 \, {\left (d e x + c e\right )}^{2} B b d}{{\left (b^{2} c^{2} e g^{4} - 2 \, a b c d e g^{4} + a^{2} d^{2} e g^{4}\right )} {\left (b x + a\right )}^{2}} + \frac {3 \, {\left (d e x + c e\right )} B d^{2}}{{\left (b^{2} c^{2} g^{4} - 2 \, a b c d g^{4} + a^{2} d^{2} g^{4}\right )} {\left (b x + a\right )}}\right )} \log \left (\frac {d e x + c e}{b x + a}\right ) + \frac {2 \, {\left (3 \, A b^{2} - B b^{2}\right )} {\left (d e x + c e\right )}^{3}}{{\left (b^{2} c^{2} e^{2} g^{4} - 2 \, a b c d e^{2} g^{4} + a^{2} d^{2} e^{2} g^{4}\right )} {\left (b x + a\right )}^{3}} - \frac {9 \, {\left (2 \, A b d - B b d\right )} {\left (d e x + c e\right )}^{2}}{{\left (b^{2} c^{2} e g^{4} - 2 \, a b c d e g^{4} + a^{2} d^{2} e g^{4}\right )} {\left (b x + a\right )}^{2}} + \frac {18 \, {\left (A d^{2} - B d^{2}\right )} {\left (d e x + c e\right )}}{{\left (b^{2} c^{2} g^{4} - 2 \, a b c d g^{4} + a^{2} d^{2} g^{4}\right )} {\left (b x + a\right )}}\right )} {\left (\frac {b c}{{\left (b c e - a d e\right )} {\left (b c - a d\right )}} - \frac {a d}{{\left (b c e - a d e\right )} {\left (b c - a d\right )}}\right )} \]
-1/18*(6*((d*e*x + c*e)^3*B*b^2/((b^2*c^2*e^2*g^4 - 2*a*b*c*d*e^2*g^4 + a^ 2*d^2*e^2*g^4)*(b*x + a)^3) - 3*(d*e*x + c*e)^2*B*b*d/((b^2*c^2*e*g^4 - 2* a*b*c*d*e*g^4 + a^2*d^2*e*g^4)*(b*x + a)^2) + 3*(d*e*x + c*e)*B*d^2/((b^2* c^2*g^4 - 2*a*b*c*d*g^4 + a^2*d^2*g^4)*(b*x + a)))*log((d*e*x + c*e)/(b*x + a)) + 2*(3*A*b^2 - B*b^2)*(d*e*x + c*e)^3/((b^2*c^2*e^2*g^4 - 2*a*b*c*d* e^2*g^4 + a^2*d^2*e^2*g^4)*(b*x + a)^3) - 9*(2*A*b*d - B*b*d)*(d*e*x + c*e )^2/((b^2*c^2*e*g^4 - 2*a*b*c*d*e*g^4 + a^2*d^2*e*g^4)*(b*x + a)^2) + 18*( A*d^2 - B*d^2)*(d*e*x + c*e)/((b^2*c^2*g^4 - 2*a*b*c*d*g^4 + a^2*d^2*g^4)* (b*x + a)))*(b*c/((b*c*e - a*d*e)*(b*c - a*d)) - a*d/((b*c*e - a*d*e)*(b*c - a*d)))
Time = 2.61 (sec) , antiderivative size = 339, normalized size of antiderivative = 1.94 \[ \int \frac {A+B \log \left (\frac {e (c+d x)}{a+b x}\right )}{(a g+b g x)^4} \, dx=\frac {B\,b\,c^2}{9\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}-\frac {A\,b\,c^2}{3\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}-\frac {B\,\ln \left (\frac {e\,\left (c+d\,x\right )}{a+b\,x}\right )}{3\,b\,g^4\,{\left (a+b\,x\right )}^3}-\frac {A\,a^2\,d^2}{3\,b\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}+\frac {11\,B\,a^2\,d^2}{18\,b\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}+\frac {5\,B\,a\,d^2\,x}{6\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}+\frac {B\,b\,d^2\,x^2}{3\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}+\frac {2\,A\,a\,c\,d}{3\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}-\frac {7\,B\,a\,c\,d}{18\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}-\frac {B\,b\,c\,d\,x}{6\,g^4\,{\left (a\,d-b\,c\right )}^2\,{\left (a+b\,x\right )}^3}+\frac {B\,d^3\,\mathrm {atan}\left (\frac {a\,d\,1{}\mathrm {i}+b\,c\,1{}\mathrm {i}+b\,d\,x\,2{}\mathrm {i}}{a\,d-b\,c}\right )\,2{}\mathrm {i}}{3\,b\,g^4\,{\left (a\,d-b\,c\right )}^3} \]
(B*d^3*atan((a*d*1i + b*c*1i + b*d*x*2i)/(a*d - b*c))*2i)/(3*b*g^4*(a*d - b*c)^3) - (B*log((e*(c + d*x))/(a + b*x)))/(3*b*g^4*(a + b*x)^3) - (A*b*c^ 2)/(3*g^4*(a*d - b*c)^2*(a + b*x)^3) + (B*b*c^2)/(9*g^4*(a*d - b*c)^2*(a + b*x)^3) - (A*a^2*d^2)/(3*b*g^4*(a*d - b*c)^2*(a + b*x)^3) + (11*B*a^2*d^2 )/(18*b*g^4*(a*d - b*c)^2*(a + b*x)^3) + (5*B*a*d^2*x)/(6*g^4*(a*d - b*c)^ 2*(a + b*x)^3) + (B*b*d^2*x^2)/(3*g^4*(a*d - b*c)^2*(a + b*x)^3) + (2*A*a* c*d)/(3*g^4*(a*d - b*c)^2*(a + b*x)^3) - (7*B*a*c*d)/(18*g^4*(a*d - b*c)^2 *(a + b*x)^3) - (B*b*c*d*x)/(6*g^4*(a*d - b*c)^2*(a + b*x)^3)